import fetch from 'utils/fetch';

export function page(query) {
    return fetch({
      url: '/api/user/baseUser/admin/list',
      method: 'get',
      params: query
    });
  }

export function getByUserId(val){
  return fetch({
    url: '/api/user/baseUser/admin/getById/'+val,
    method: 'get',
  });
}

export function getByMarketCode(val){
  return fetch({
    url: '/api/user/baseUser/admin/getByMarketCodeCp',
    method: 'get',
    params: val
  })
}

export function sendObj(pojo){
  return fetch({
    url: '/api/user/baseUser/admin/updateBaseUser',
    method: 'put',
    data: pojo
  })
}